import java.util.ArrayList;

public class Unicorn extends Piece {
	/*
	 * 8   - - - - - - - - - - - -    
	 * 7   - - - - - - - - - - - -    
	 * 6   - - - - x - x - - - - -    
	 * 5   - - - x - - - x - - - -    
	 * 4   - - - - - U - - - - - -      MIDDLE (2)
	 * 3   - - - x - - - x - - - -    
	 * 2   - - - - x - x - - - - -    
	 * 1   - - - - - - - - - - - -    
	 * 	   a b c d e f g h i j k l
	 * 
	 * The Unicorn stays on the EarthBoard and is just like a knight in regular chess! This is
	 * getting boring...
	 */
	
	public Unicorn(int s) {
		super(s);
	}

	protected ArrayList<Square> getAvailableMoves() {
		moves.clear();
		for(int i = 0; i < 4; i++) {
			moves.add(getSquare().getFarSquare(Square.NORTHEAST + 90 * i, 1).getFarSquare(Square.NORTHEAST + 90 * i - 45, 1));
			moves.add(getSquare().getFarSquare(Square.NORTHEAST + 90 * i, 1).getFarSquare((Square.NORTHEAST + 90 * i + 45) % 360, 1));
		}
		System.out.println(moves);
		return moves;
	}
	
	protected ArrayList<Square> getAvailableCapts() {
		return getAvailableMoves();
	}
	
	public String toString() {
		if(side == 1) {
			return "U";
		} else if(side == 2) {
			return "u";
		} else {
			return "no side";
		}
	}
}
